Integrand size = 24, antiderivative size = 21 \[ \int \sec ^m(e+f x) \left (m-(1+m) \sec ^2(e+f x)\right ) \, dx=-\frac {\sec ^{1+m}(e+f x) \sin (e+f x)}{f} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.042, Rules used = {4128} \[ \int \sec ^m(e+f x) \left (m-(1+m) \sec ^2(e+f x)\right ) \, dx=-\frac {\sin (e+f x) \sec ^{m+1}(e+f x)}{f} \]
[In]
[Out]
Rule 4128
Rubi steps \begin{align*} \text {integral}& = -\frac {\sec ^{1+m}(e+f x) \sin (e+f x)}{f} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.39 (sec) , antiderivative size = 107, normalized size of antiderivative = 5.10 \[ \int \sec ^m(e+f x) \left (m-(1+m) \sec ^2(e+f x)\right ) \, dx=\frac {\csc (e+f x) \sec ^{-1+m}(e+f x) \left ((2+m) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {m}{2},\frac {2+m}{2},\sec ^2(e+f x)\right )-(1+m) \operatorname {Hypergeometric2F1}\left (\frac {1}{2},\frac {2+m}{2},\frac {4+m}{2},\sec ^2(e+f x)\right ) \sec ^2(e+f x)\right ) \sqrt {-\tan ^2(e+f x)}}{f (2+m)} \]
[In]
[Out]
Time = 1.15 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.90
method | result | size |
parallelrisch | \(\frac {2 \tan \left (\frac {f x}{2}+\frac {e}{2}\right ) \left (\frac {1}{\cos \left (f x +e \right )}\right )^{m}}{f \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}-1\right )}\) | \(40\) |
risch | \(\frac {i \left ({\mathrm e}^{i \left (f x +e \right )}\right )^{m} \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{-m} 2^{m} \left ({\mathrm e}^{\frac {i \operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right ) \operatorname {csgn}\left (\frac {i {\mathrm e}^{i \left (f x +e \right )}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right )^{2} \pi m}{2}} {\mathrm e}^{-\frac {i \operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right ) \operatorname {csgn}\left (\frac {i {\mathrm e}^{i \left (f x +e \right )}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right ) \operatorname {csgn}\left (i {\mathrm e}^{i \left (f x +e \right )}\right ) \pi m}{2}} {\mathrm e}^{-\frac {i \operatorname {csgn}\left (\frac {i {\mathrm e}^{i \left (f x +e \right )}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right )^{3} \pi m}{2}} {\mathrm e}^{\frac {i \operatorname {csgn}\left (\frac {i {\mathrm e}^{i \left (f x +e \right )}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right )^{2} \operatorname {csgn}\left (i {\mathrm e}^{i \left (f x +e \right )}\right ) \pi m}{2}} {\mathrm e}^{2 i f x} {\mathrm e}^{2 i e}-{\mathrm e}^{-\frac {i \operatorname {csgn}\left (\frac {i {\mathrm e}^{i \left (f x +e \right )}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right ) \pi m \left (-\operatorname {csgn}\left (\frac {i {\mathrm e}^{i \left (f x +e \right )}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right )+\operatorname {csgn}\left (i {\mathrm e}^{i \left (f x +e \right )}\right )\right ) \left (-\operatorname {csgn}\left (\frac {i {\mathrm e}^{i \left (f x +e \right )}}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right )+\operatorname {csgn}\left (\frac {i}{{\mathrm e}^{2 i \left (f x +e \right )}+1}\right )\right )}{2}}\right )}{f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )}\) | \(378\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 29, normalized size of antiderivative = 1.38 \[ \int \sec ^m(e+f x) \left (m-(1+m) \sec ^2(e+f x)\right ) \, dx=-\frac {\frac {1}{\cos \left (f x + e\right )}^{m} \sin \left (f x + e\right )}{f \cos \left (f x + e\right )} \]
[In]
[Out]
\[ \int \sec ^m(e+f x) \left (m-(1+m) \sec ^2(e+f x)\right ) \, dx=- \int \left (- m \sec ^{m}{\left (e + f x \right )}\right )\, dx - \int \sec ^{2}{\left (e + f x \right )} \sec ^{m}{\left (e + f x \right )}\, dx - \int m \sec ^{2}{\left (e + f x \right )} \sec ^{m}{\left (e + f x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 283 vs. \(2 (21) = 42\).
Time = 0.43 (sec) , antiderivative size = 283, normalized size of antiderivative = 13.48 \[ \int \sec ^m(e+f x) \left (m-(1+m) \sec ^2(e+f x)\right ) \, dx=\frac {2^{m} \cos \left (-{\left (f x + e\right )} {\left (m + 2\right )} + m \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) \sin \left (2 \, f x + 2 \, e\right ) - 2^{m} \cos \left (-{\left (f x + e\right )} m + m \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) \sin \left (2 \, f x + 2 \, e\right ) + {\left (2^{m} \cos \left (2 \, f x + 2 \, e\right ) + 2^{m}\right )} \sin \left (-{\left (f x + e\right )} {\left (m + 2\right )} + m \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right ) - {\left (2^{m} \cos \left (2 \, f x + 2 \, e\right ) + 2^{m}\right )} \sin \left (-{\left (f x + e\right )} m + m \arctan \left (\sin \left (2 \, f x + 2 \, e\right ), \cos \left (2 \, f x + 2 \, e\right ) + 1\right )\right )}{{\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )} {\left (\cos \left (2 \, f x + 2 \, e\right )^{2} + \sin \left (2 \, f x + 2 \, e\right )^{2} + 2 \, \cos \left (2 \, f x + 2 \, e\right ) + 1\right )}^{\frac {1}{2} \, m} f} \]
[In]
[Out]
\[ \int \sec ^m(e+f x) \left (m-(1+m) \sec ^2(e+f x)\right ) \, dx=\int { -{\left ({\left (m + 1\right )} \sec \left (f x + e\right )^{2} - m\right )} \sec \left (f x + e\right )^{m} \,d x } \]
[In]
[Out]
Time = 15.39 (sec) , antiderivative size = 37, normalized size of antiderivative = 1.76 \[ \int \sec ^m(e+f x) \left (m-(1+m) \sec ^2(e+f x)\right ) \, dx=-\frac {\sin \left (2\,e+2\,f\,x\right )\,{\left (\frac {1}{\cos \left (e+f\,x\right )}\right )}^m}{f\,\left (\cos \left (2\,e+2\,f\,x\right )+1\right )} \]
[In]
[Out]